package com.ccf.business.knowledge.mapper;

import com.ccf.business.knowledge.model.LabelData;
import com.service.mybatis.mapper.SuperMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;


/**
 * 标注记录
 * 
 * @author ccf
 * @date 2022-02-15 16:56:10
 */
@Mapper
public interface LabelDataMapper extends SuperMapper<LabelData> {

    /**
     * 下一偏
     * @param id
     * @return
     */
    String selectAfterIdByRank(@Param(value = "id") String id, @Param(value = "status") Integer status);
    /**
     * 下一偏
     * @param id
     * @return
     */
    String selectAfterIdByRankAndUser(@Param(value = "id") String id, @Param(value = "status") Integer status);

    /**
     * 最小一篇
     * @param id
     * @return
     */
    String selectMinIdByRank(@Param(value = "id") String id, @Param(value = "status") Integer status);
}
